PEGetNthSQLExpression

Use PEGetNthSQLExpression to retrieve one of the SQL expressions associated with a report. Use this function with PEGetHandleString. Use PEGetNSQLExpressions, to determine the number of SQL expressions in the report.

C Syntax
BOOL CRPE_API PEGetNthSQLExpression (
        short printJob,
        short expressionN,
        HANDLE FAR *nameHandle,
        short FAR *nameLength,
        HANDLE FAR *textHandle,
        short FAR *textLength );
Parameters

printJob

Specifies the print job from which you want to gather SQL expression information.

expressionN

Specifies the numeric value indicating which expression to retrieve.

nameHandle

Specifies a pointer to the handle of the string containing the expression name.

nameLength

Specifies a pointer to the length of name string.

textHandle

Specifies a pointer to the handle of the string containing the SQL expression.

textLength

Specifies a pointer to the length of the expression string.

Returns
VB Syntax
Declare Function PEGetNthSQLExpression Lib "crpe32.dll" (ByVal printJob 
As Integer, ByVal expressionN As Integer, nameHandle As Long, nameLength 
As Integer, textHandle As Long, textLength As Integer) As Integer
Delphi Syntax
function PEGetNthSQLExpression (
    printJob: smallint;
    expressionN: Smallint;
    var nameHandle: Hwnd;
    var nameLength: Smallint;
    var textHandle: Hwnd;
    var textLength: Smallint
    ): Bool stdcall;


Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com